package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName region_others
 */
@CollectionName(value ="region_others")
@Data
public class RegionOthers implements Serializable {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    private String id;

    @CollectionField(value = "code")
    private Long code;

    /**
     *
     */
    @CollectionField(value = "name")
    private String name;

    /**
     *
     */
    @CollectionField(value = "initials")
    private String initials;

    /**
     *
     */
    @CollectionField(value = "streetCode")
    private Integer streetcode;

    @CollectionField(exist = false)
    private String streetName;

    /**
     *
     */
    @CollectionField(value = "areaCode")
    private Integer areacode;

    /**
     *
     */
    @CollectionField(value = "cityCode")
    private Integer citycode;

    /**
     *
     */
    @CollectionField(value = "provinceCode")
    private Integer provincecode;

    /**
     *
     */
    @CollectionField(value = "remark")
    private String remark;

    /**
     *
     */
    @CollectionField(value = "type")
    private String type;

    /**
     *
     */
    @CollectionField(value = "updateTime")
    private Date updatetime;

    @CollectionField(exist = false)
    private static final long serialVersionUID = 1L;

}
